<!DOCTYPE html>
<html lang="en">
<!--head block-->
<head>
    {% block head %}
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}"
           crossorigin="anonymous">

    <!-- Custom styles for this template -->
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css') }}">
    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="{{ url_for('static', filename='js/jquery-3.5.1.min.js') }}"
            crossorigin="anonymous"></script>
    <script src="{{ url_for('static', filename='js/popper.min.js') }}"
            crossorigin="anonymous"></script>
    <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"
            crossorigin="anonymous"></script>

    <title>{% block title %}Jenkins CI/CD tool{% endblock %}</title>
    {% endblock %}
</head>
<!--head block ends-->

<body>
<header>

    <nav class="navbar navbar-expand-md fixed-top navbar-dark bg-dark">
        <div class="navbar-collapse collapse w-100 order-1 order-md-0 dual-collapse2">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item">
                    <a class="nav-link" href="/build/pre_build">测试-预发build</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/build/prod_build">预发-生产build</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/deploy/pre_deploy">预发部署</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/deploy/prod_deploy">生产部署</a>
                </li>


            </ul>
        </div>
        <div class="mx-auto order-0">
            <a class="navbar-brand mx-auto" href="/">Jenkins CI/CD tool</a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".dual-collapse2">
                <span class="navbar-toggler-icon"></span>
            </button>
        </div>
        <div class="navbar-collapse collapse w-100 order-3 dual-collapse2">

            <ul class="navbar-nav ml-auto">

                <li class="nav-item">
                    <p class="navbar-text">
                        {% if session['username'] %}You are logged in as  <span class=" text-white font-weight-bold">{{ session['username'] }}</span>
                        {% endif %}
                    </p>
                    {% if not session['username'] %}
                    <a class="btn btn-outline-success" href="/login">Login</a>
                    {% else %}
                    <a class="btn btn-outline-danger" href="/logout">Logout</a>
                    {% endif %}
                </li>
            </ul>
        </div>
    </nav>
</header>
<!-- Begin THIS page content -->
<main role="main" class="container ">
    {% block content %}{% endblock %}
</main>
<!-- End THIS page content -->

<!-- Footer is located in common.html -->
<footer class="footer">
    <div id="footer">
        {% block footer %}
        <div class="container center">
            <span class="text-muted">Leadbank IT Group</span>
        </div>
        {% endblock %}
    </div>
</footer>

</body>
</html>




